package HomeWork._2024_3_18.src;

public class Circle extends Graph{
    private int r;

    public Circle() {
    }

    public Circle(int r) {
        this.r = r;
    }

    @Override
    void draw() {
        super.draw();
    }
    double calculateArea(){
        return r*r*Math.PI;
    }

    public int getR() {
        return r;
    }

    public void setR(int r) {
        this.r = r;
    }
}
